package com.fjl.javatest;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class ShuZu {
	public static void main(String[] args) {
		List list = new ArrayList();
		list.add(0);
		list.add(1);
		list.add(2);
		list.add(3);
		list.add(4);
		for(Iterator i  = list.iterator();i.hasNext();){
			System.out.println(i.next());
		}
		System.out.println("list.size() = "+list.size());
		int r[] = new int[5];
		r[0] = 0;
		r[1] = 1;
		r[2] = 2;
		r[3] = 3;
		r[4] = 4;
		for(int i=0;i<r.length;i++){
			System.out.println("r[]:"+r[i]);
		}
		
	}

}
